<!DOCTYPE html>
{% load static %}
{% load mytags %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登陆</title>
</head>
<body>
    <div style="background:gray; color:#FFF">

<p style="color: red">{{ msg }}</p>

<form method="post">
    {% csrf_token %}
    <center>
    <table>
        <p>名字: {{ form.username }}<span class='err'>{% errmsg form.username.errors %}</span></p>
        <p>密码: {{ form.password }}<span class='err'>{% errmsg form.age.errors %}</span></p>
    </table>

    <input type="submit" value='登陆'>
</form>
<br>
<a href="{% url 'bbs:signup' %}">点击前往注册</a>
    </center>
    </div>
</body>
</html>
